package com.example.mbl.dao;

import com.example.mbl.entity.User;
import com.example.mbl.result.business.UserPageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(String userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User findUserByUsername(String username);

    List<UserPageResult> getUserList(@Param("pagesize") int pagesize,
                                     @Param("start") int start);
}